
<div class="titlebar"><i class="iconfont icon-line-chart_icon"></i>提现统计</div>
<div class="cards">
    <div class="card">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$money/100|money}</div><div class="text">帐号余额</div></div>
    </div>
    <div class="card">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$tobo_paid}</div><div class="text">锁定金额</div></div>
    </div>
    <div class="card">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$now_money}</div><div class="text">申请中</div></div>
    </div>
    <div class="card">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$realmoney}</div><div class="text">已通过</div></div>
    </div>
    <div class="card">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$back_money}</div><div class="text">未通过</div></div>
    </div>
</div>
<div class="titlebar">
    <div class="fn-left"><i class="iconfont icon-chuzhijine"></i>提现管理</div>
    <div class="fn-right">
        <form id="form" action="{:url('bank/cash')}" method="get">
            <input type="hidden" value="{$types}" name="types" /> 
            <input placeholder="请输入用户完整手机号" class="input w200" type="text" name="keyword" value="{$keyword}" /><input type="submit" value="搜索" class="button button-blue" />
        </form>
    </div>
    <div class="fn-right">
        <a href="{:url('bank/cash',['types'=>0])}" class="button{if $types == 0} button-blue{/if}">待审</a>
        <a href="{:url('bank/cash',['types'=>2])}" class="button{if $types == 2} button-blue{/if}">已通过</a>
        <a href="{:url('bank/cash',['types'=>1])}" class="button{if $types == 1} button-blue{/if}">未通过</a>
    </div>
</div>
<table class="pure-table">
    <thead>
        <tr>
            <th class="w100">操作</th>
            <th>昵称</th>
            <th class="w120">手机号</th>
            <th class="w160 fn-tar"><i class="iconfont icon-renminbi1688"></i>结算/提现</th>
            <th class="w180">提现时间</th>
            <th class="w80 fn-tac">状态</th>
            <th class="w160">审核时间</th>
            <th class="w180">交易单号</th>
            <th>日志</th>
        </tr>
    </thead>
    <tbody>
        {foreach $list as $vo}
        <tr>
            <td class="fn-tac"><a class="button" href="{:url('bank/cashpass',['id'=>$vo.id])}" title="审核">审核</a></td>
            <td><a href="javascript:openwin('{:url('user/review',['uid' => $vo.user_id])}')">{$vo.user.nickname}</a></td>
            <td>{$vo.user.phone_uid}</td>
            <td class="fn-tar">￥{if !empty($vo.realmoney)}<span class="red">{$vo.realmoney}</span> / {/if}<span class="blue">{$vo.money}</span></td>
            <td>{$vo->update_time|date='Y-m-d H:i'}</td>
            <td class="fn-tac li">{if $vo.state == 1}<span class="badge bg-green">已通过</span>{elseif $vo.state == -1}<span class="badge bg-red">不通过</span>{else}<span class="badge bg-yellow">待审</span>{/if}</td>
            <td>{$vo->audit_time|date='Y-m-d H:i'}</td>
            <td>{$vo.trade_no}</td>
            <td>{$vo.msg}</td>
        </tr>
        {/foreach}
    </tbody>
</table>
<div class="page">{$list|raw}</div>